package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户账户流水对象 wms_customer_transaction
 * 
 * @author ruoyi
 * @date 2024-12-16
 */
public class CustomerTransaction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 交易编号 */
    @Excel(name = "交易编号")
    private String transactionCode;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String customerId;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String transactionType;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal transactionAmount;

    /** 上期余额 */
    @Excel(name = "上期余额")
    private BigDecimal previousBalance;

    /** 当前余额 */
    @Excel(name = "当前余额")
    private BigDecimal currentBalance;

    /** 出库单号 */
    @Excel(name = "出库单号")
    private Long shipmentOrderId;

    /** 删除标志 */
    private Long delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTransactionCode(String transactionCode) 
    {
        this.transactionCode = transactionCode;
    }

    public String getTransactionCode() 
    {
        return transactionCode;
    }
    public void setCustomerId(String customerId) 
    {
        this.customerId = customerId;
    }

    public String getCustomerId() 
    {
        return customerId;
    }
    public void setTransactionType(String transactionType) 
    {
        this.transactionType = transactionType;
    }

    public String getTransactionType() 
    {
        return transactionType;
    }
    public void setTransactionAmount(BigDecimal transactionAmount) 
    {
        this.transactionAmount = transactionAmount;
    }

    public BigDecimal getTransactionAmount() 
    {
        return transactionAmount;
    }
    public void setPreviousBalance(BigDecimal previousBalance) 
    {
        this.previousBalance = previousBalance;
    }

    public BigDecimal getPreviousBalance() 
    {
        return previousBalance;
    }
    public void setCurrentBalance(BigDecimal currentBalance) 
    {
        this.currentBalance = currentBalance;
    }

    public BigDecimal getCurrentBalance() 
    {
        return currentBalance;
    }
    public void setShipmentOrderId(Long shipmentOrderId) 
    {
        this.shipmentOrderId = shipmentOrderId;
    }

    public Long getShipmentOrderId() 
    {
        return shipmentOrderId;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("transactionCode", getTransactionCode())
            .append("customerId", getCustomerId())
            .append("transactionType", getTransactionType())
            .append("transactionAmount", getTransactionAmount())
            .append("previousBalance", getPreviousBalance())
            .append("currentBalance", getCurrentBalance())
            .append("shipmentOrderId", getShipmentOrderId())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
